package com.atguigu.weixin.model;

/**
 * 微信最终值
 * @author Administrator
 *
 */
public class WeixinFianlValue {
	//临时二维码专用
	public final static int REPASSWORD_TYPE=1;//重置密码
    public final static int SET_GROUP_TYPE=2;//设置用户组
    public final static int  TEMP_LOGIN=11;//扫描登录
    public final static int TEMP_BIND=12;//绑定用户
	
	
	//成实广告测试帐号的
		public final static String APPID = "wx6d277ac20c1b3738";//微信号 开发者ID
		public final static String APPSECRET = "cdba94313e25bb3fb41b30653a241a42";//开发者密码(AppSecret)
	//成实广告
	//public final static String APPID = "wxbbfd0da70f25259e";//微信号 开发者ID
	//public final static String APPSECRET = "b53036d002f86e6b80daeb2a0c60dcaf";//开发者密码(AppSecret)
	
	//奔达康金融
	//public final static String APPID = "wx80d45669a60baefb";//微信号 开发者ID
	//public final static String APPSECRET = "a6b331ad23a82268e69ff8de689aad7f";//开发者密码(AppSecret)
	
	//获取tolen的接口
	public final static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
	//创建菜单的接口
	public final static String MENU_ADD = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";
	//http请求方式：GET
	public final static String MENU_QUERY ="https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";
	//票据的接口
	public final static String ACCESS_TICKET_URL="https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";
	//消息常量
	public final static String MSG_TEXT_TYPE = "text";//文本
	public final static String MSG_IMAGE_TYPE = "image";//图片
	public final static String MSG_VOICE_TYPE = "voice";//声音
	public final static String MSG_VIDEO_TYPE = "video";//视频
	public final static String MSG_SHORTVIDEO_TYPE = "shortvideo";//小视频
	public final static String MSG_LOCATION_TYPE = "location";//地理位置消息
	public final static String MSG_EVENT_TYPE = "event";//事件
	
	//新增临时素材、媒体文件在微信后台保存时间为3天，即3天后media_id失效
	public final static String POST_MEDIA="https://api.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE";
	//获取临时素材
	public final static String GET_MEDIA="https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID";
	
	//发送模板消息
	public final static String SEND_TEMPLATE_MSG="https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";
	
	
	/**
	 * 用户
	 */
	public final static String USER_QUERY="https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";//获取用户信息
	//1、用户授权
	public final static String AUTH_URL="https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";//授权的url
	//2、用户授权 --通过code换取网页授权access_token
	public final static String AUTH_GET_OID="https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
	//用户分组信息管理 添加分组
	//1、 创建标签（创建用户）
	//public final static String ADD_GROUP="https://api.weixin.qq.com/cgi-bin/tags/create?access_token=ACCESS_TOKEN";
	//2、获取公众号已创建的标签（查询所有分组）
	//public final static String QUERY_ALL_GROUP="https://api.weixin.qq.com/cgi-bin/tags/get?access_token=ACCESS_TOKEN";
	//3、查询用户所在的分组（ 获取用户身上的标签列表）
	//public final static String QUERY_USER_GROUP="https://api.weixin.qq.com/cgi-bin/tags/getidlist?access_token=ACCESS_TOKEN";
	//4、修改分组名
	//public final static String UPDATE_GROUP_NAME="https://api.weixin.qq.com/cgi-bin/tags/update?access_token=ACCESS_TOKEN";
	//5、移动用户到分组（ 批量为用户打标签）
	//public final static String MOVE_USER_GROUP="https://api.weixin.qq.com/cgi-bin/tags/members/batchtagging?access_token=ACCESS_TOKEN";
	
	//用户分组信息管理 添加分组
		//1、 创建标签（创建用户）
	public final static String ADD_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/create?access_token=ACCESS_TOKEN";
	//2、获取公众号已创建的标签（查询所有分组）
	public final static String QUERY_ALL_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/get?access_token=ACCESS_TOKEN";
	//3、查询用户所在的分组（ 获取用户身上的标签列表）
	public final static String QUERY_USER_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/getid?access_token=ACCESS_TOKEN";
	//4、修改分组名
	public final static String UPDATE_GROUP_NAME = "https://api.weixin.qq.com/cgi-bin/groups/update?access_token=ACCESS_TOKEN";
	//5、移动用户到分组（ 批量为用户打标签）
	public final static String MOVE_USER_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/members/update?access_token=ACCESS_TOKEN";
	//6、批量移动用户分组
	public final static String MOVE_USERS_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/members/batchupdate?access_token=ACCESS_TOKEN";
	//7、删除分组
	public final static String DELETE_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/delete?access_token=ACCESS_TOKEN";
	
	/**
	 * 二维码  官网是 TOKEN 本地替换成ACCESS_TOKEN
	 */
	public final static String QR_GET="https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=ACCESS_TOKEN";
	
	/**
	 * 客服
	 * 添加
	 */
	public final static String KF_ADD="https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN";
}
